package org.example;

import org.example.entity.Group;
import org.example.entity.Member;

public class Client {
    public static void main(String[] args) {
        Component member1 = new Member("张三");
        Component member2 = new Member("李四");
        Component member3 = new Member("王五");
        Group group1 = new Group("组一");
        Group group2 = new Group("组二");
        Group group3 = new Group("组三");

        member1.share("搞笑视频");
        group1.add(member1);
        group1.add(member2);
        group1.add(group2);
        System.out.println(group1.toString());

        group1.share("比赛回放");

    }
}